package helper

import "github.com/dop251/goja"
import "fmt"

type Comp struct {
	Music func(id int) string
	Lyric func(id int) string
}

var App = Comp{}

func Initjs() {
	str := `window=this;var CryptoJS=function(t,e){var r={},n=r.lib={},s=function(){},o=n.Base={extend:function(t){s.prototype=this;var e=new s;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},d=n.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes;if(t=t.sigBytes,this.clamp(),n%4)for(var s=0;s<t;s++)e[n+s>>>2]|=(r[s>>>2]>>>24-8*(s%4)&255)<<24-8*((n+s)%4);else if(65535<r.length)for(s=0;s<t;s+=4)e[n+s>>>2]=r[s>>>2];else e.push.apply(e,r);return this.sigBytes+=t,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-8*(r%4),e.length=t.ceil(r/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r=[],n=0;n<e;n+=4)r.push(4294967296*t.random()|0);return new d.init(r,e)}}),g=r.enc={},u=g.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var r=[],n=0;n<t;n++){var s=e[n>>>2]>>>24-8*(n%4)&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-4*(n%8);return new d.init(r,e/2)}},f=g.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var r=[],n=0;n<t;n++)r.push(String.fromCharCode(e[n>>>2]>>>24-8*(n%4)&255));return r.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-8*(n%4);return new d.init(r,e)}},h=g.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},_=n.BufferedBlockAlgorithm=o.extend({reset:function(){this.i3x=new d.init,this.yL9C=0},AE9v:function(t){"string"==typeof t&&(t=h.parse(t)),this.i3x.concat(t),this.yL9C+=t.sigBytes},mD6x:function(e){var r=this.i3x,n=r.words,s=r.sigBytes,o=this.blockSize,g=s/(4*o),g=e?t.ceil(g):t.max((0|g)-this.Vr7k,0);if(e=g*o,s=t.min(4*e,s),e){for(var u=0;u<e;u+=o)this.tt8l(n,u);u=n.splice(0,e),r.sigBytes-=s}return new d.init(u,s)},clone:function(){var t=o.clone.call(this);return t.i3x=this.i3x.clone(),t},Vr7k:0});n.Hasher=_.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){_.reset.call(this),this.mj6d()},update:function(t){return this.AE9v(t),this.mD6x(),this},finalize:function(t){return t&&this.AE9v(t),this.nZ6T()},blockSize:16,mE6y:function(t){return function(e,r){return new t.init(r).finalize(e)}},yK9B:function(t){return function(e,r){return new $.HMAC.init(t,r).finalize(e)}}});var $=r.algo={};return r}(Math);function reverseStr(t){var e,r="";for(e=t.length-1;e>-1;--e)r+=t.charAt(e);return r}function digitToHex(t){var e="";for(i=0;4>i;++i)e+=hexToChar[15&t],t>>>=4;return reverseStr(e)}function biToHex(t){var e,r="";for(biHighIndex(t),e=biHighIndex(t);e>-1;--e)r+=digitToHex(t.digits[e]);return r}function biToString(t,e){var r,n,s=new BigInt;for(s.digits[0]=e,n=hexatrigesimalToChar[(r=biDivideModulo(t,s))[1].digits[0]];1==biCompare(r[0],bigZero);)digit=(r=biDivideModulo(r[0],s))[1].digits[0],n+=hexatrigesimalToChar[r[1].digits[0]];return(t.isNeg?"-":"")+reverseStr(n)}function encryptedString(t,e){for(var r,n,s,o,d,g,u,f=[],h=e.length,_=0;h>_;)f[_]=e.charCodeAt(_),_++;for(;0!=f.length%t.chunkSize;)f[_++]=0;for(r=f.length,n="",_=0;r>_;_+=t.chunkSize){for(d=new BigInt,s=0,o=_;o<_+t.chunkSize;++s)d.digits[s]=f[o++],d.digits[s]+=f[o++]<<8;g=t.barrett.powMod(d,t.e),n+=(u=16==t.radix?biToHex(g):biToString(g,t.radix))+" "}return n.substring(0,n.length-1)}function BigInt(t){this.digits="boolean"==typeof t&&1==t?null:ZERO_ARRAY.slice(0),this.isNeg=!1}function setMaxDigits(t){ZERO_ARRAY=Array(maxDigits=t);for(var e=0;e<ZERO_ARRAY.length;e++)ZERO_ARRAY[e]=0;bigZero=new BigInt,(bigOne=new BigInt).digits[0]=1}function biFromNumber(t){var e,r=new BigInt;for(r.isNeg=0>t,t=Math.abs(t),e=0;t>0;)r.digits[e++]=t&maxDigitVal,t>>=biRadixBits;return r}function biNumBits(t){var e,r=biHighIndex(t),n=t.digits[r],s=(r+1)*bitsPerDigit;for(e=s;e>s-bitsPerDigit&&0==(32768&n);--e)n<<=1;return e}function biCopy(t){var e=new BigInt(!0);return e.digits=t.digits.slice(0),e.isNeg=t.isNeg,e}function biAdd(t,e){var r,n,s,o;if(t.isNeg!=e.isNeg)e.isNeg=!e.isNeg,r=biSubtract(t,e),e.isNeg=!e.isNeg;else{for(r=new BigInt,n=0,o=0;o<t.digits.length;++o)s=t.digits[o]+e.digits[o]+n,r.digits[o]=65535&s,n=Number(s>=biRadix);r.isNeg=t.isNeg}return r}function biSubtract(t,e){var r,n,s,o;if(t.isNeg!=e.isNeg)e.isNeg=!e.isNeg,r=biAdd(t,e),e.isNeg=!e.isNeg;else{for(r=new BigInt,s=0,o=0;o<t.digits.length;++o)n=t.digits[o]-e.digits[o]+s,r.digits[o]=65535&n,r.digits[o]<0&&(r.digits[o]+=biRadix),s=0-Number(0>n);if(-1==s){for(s=0,o=0;o<t.digits.length;++o)n=0-r.digits[o]+s,r.digits[o]=65535&n,r.digits[o]<0&&(r.digits[o]+=biRadix),s=0-Number(0>n);r.isNeg=!t.isNeg}else r.isNeg=t.isNeg}return r}function biMultiply(t,e){var r,n,s,o,d=new BigInt,g=biHighIndex(t),u=biHighIndex(e);for(o=0;u>=o;++o){for(r=0,s=o,j=0;g>=j;++j,++s)n=d.digits[s]+t.digits[j]*e.digits[o]+r,d.digits[s]=n&maxDigitVal,r=n>>>biRadixBits;d.digits[o+g+1]=r}return d.isNeg=t.isNeg!=e.isNeg,d}function biMultiplyDigit(t,e){var r,n,s,o;for(result=new BigInt,r=biHighIndex(t),n=0,o=0;r>=o;++o)s=result.digits[o]+t.digits[o]*e+n,result.digits[o]=s&maxDigitVal,n=s>>>biRadixBits;return result.digits[1+r]=n,result}function arrayCopy(t,e,r,n,s){var o,d,g=Math.min(e+s,t.length);for(o=e,d=n;g>o;++o,++d)r[d]=t[o]}function biShiftLeft(t,e){var r,n,s,o,d=Math.floor(e/bitsPerDigit),g=new BigInt;for(arrayCopy(t.digits,0,g.digits,d,g.digits.length-d),r=e%bitsPerDigit,n=bitsPerDigit-r,o=(s=g.digits.length-1)-1;s>0;--s,--o)g.digits[s]=g.digits[s]<<r&maxDigitVal|(g.digits[o]&highBitMasks[r])>>>n;return g.digits[0]=g.digits[s]<<r&maxDigitVal,g.isNeg=t.isNeg,g}function biShiftRight(t,e){var r,n,s,o,d=Math.floor(e/bitsPerDigit),g=new BigInt;for(arrayCopy(t.digits,d,g.digits,0,t.digits.length-d),r=e%bitsPerDigit,n=bitsPerDigit-r,o=(s=0)+1;s<g.digits.length-1;++s,++o)g.digits[s]=g.digits[s]>>>r|(g.digits[o]&lowBitMasks[r])<<n;return g.digits[g.digits.length-1]>>>=r,g.isNeg=t.isNeg,g}function biMultiplyByRadixPower(t,e){var r=new BigInt;return arrayCopy(t.digits,0,r.digits,e,r.digits.length-e),r}function biDivideByRadixPower(t,e){var r=new BigInt;return arrayCopy(t.digits,e,r.digits,0,r.digits.length-e),r}function biModuloByRadixPower(t,e){var r=new BigInt;return arrayCopy(t.digits,0,r.digits,0,e),r}function biCompare(t,e){if(t.isNeg!=e.isNeg)return 1-2*Number(t.isNeg);for(var r=t.digits.length-1;r>=0;--r)if(t.digits[r]!=e.digits[r])return t.isNeg?1-2*Number(t.digits[r]>e.digits[r]):1-2*Number(t.digits[r]<e.digits[r]);return 0}function biDivideModulo(t,e){var r,n,s,o,d,g,u,f,h,_,$,l,p,x,y=biNumBits(t),v=biNumBits(e),m=e.isNeg;if(v>y)return t.isNeg?((r=biCopy(bigOne)).isNeg=!e.isNeg,t.isNeg=!1,e.isNeg=!1,n=biSubtract(e,t),t.isNeg=!0,e.isNeg=m):(r=new BigInt,n=biCopy(t)),[r,n];for(r=new BigInt,n=t,s=Math.ceil(v/bitsPerDigit)-1,o=0;e.digits[s]<biHalfRadix;)e=biShiftLeft(e,1),++o,s=Math.ceil(++v/bitsPerDigit)-1;for(n=biShiftLeft(n,o),y+=o,g=biMultiplyByRadixPower(e,(d=Math.ceil(y/bitsPerDigit)-1)-s);-1!=biCompare(n,g);)++r.digits[d-s],n=biSubtract(n,g);for(u=d;u>s;--u){for(f=u>=n.digits.length?0:n.digits[u],h=u-1>=n.digits.length?0:n.digits[u-1],_=u-2>=n.digits.length?0:n.digits[u-2],$=s>=e.digits.length?0:e.digits[s],l=s-1>=e.digits.length?0:e.digits[s-1],r.digits[u-s-1]=f==$?maxDigitVal:Math.floor((f*biRadix+h)/$),p=r.digits[u-s-1]*($*biRadix+l),x=f*biRadixSquared+(h*biRadix+_);p>x;)--r.digits[u-s-1],p=r.digits[u-s-1]*($*biRadix|l),x=f*biRadix*biRadix+(h*biRadix+_);(n=biSubtract(n,biMultiplyDigit(g=biMultiplyByRadixPower(e,u-s-1),r.digits[u-s-1]))).isNeg&&(n=biAdd(n,g),--r.digits[u-s-1])}return n=biShiftRight(n,o),r.isNeg=t.isNeg!=m,t.isNeg&&(r=m?biAdd(r,bigOne):biSubtract(r,bigOne),n=biSubtract(e=biShiftRight(e,o),n)),0==n.digits[0]&&0==biHighIndex(n)&&(n.isNeg=!1),[r,n]}function biDivide(t,e){return biDivideModulo(t,e)[0]}function BarrettMu(t){this.modulus=biCopy(t),this.k=biHighIndex(this.modulus)+1;var e=new BigInt;e.digits[2*this.k]=1,this.mu=biDivide(e,this.modulus),this.bkplus1=new BigInt,this.bkplus1.digits[this.k+1]=1,this.modulo=BarrettMu_modulo,this.multiplyMod=BarrettMu_multiplyMod,this.powMod=BarrettMu_powMod}function BarrettMu_modulo(t){var e,r=biDivideByRadixPower(t,this.k-1),n=biMultiply(r,this.mu),s=biDivideByRadixPower(n,this.k+1),o=biModuloByRadixPower(t,this.k+1),d=biMultiply(s,this.modulus),g=biModuloByRadixPower(d,this.k+1),u=biSubtract(o,g);for(u.isNeg&&(u=biAdd(u,this.bkplus1)),e=biCompare(u,this.modulus)>=0;e;)e=biCompare(u=biSubtract(u,this.modulus),this.modulus)>=0;return u}function BarrettMu_multiplyMod(t,e){var r=biMultiply(t,e);return this.modulo(r)}function BarrettMu_powMod(t,e){var r,n,s=new BigInt;for(s.digits[0]=1,r=t,n=e;0!=(1&n.digits[0])&&(s=this.multiplyMod(s,r)),0!=(n=biShiftRight(n,1)).digits[0]||0!=biHighIndex(n);)r=this.multiplyMod(r,r);return s}!function(){var t=CryptoJS,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this.bD3x;t.clamp(),t=[];for(var s=0;s<r;s+=3)for(var o=(e[s>>>2]>>>24-8*(s%4)&255)<<16|(e[s+1>>>2]>>>24-8*((s+1)%4)&255)<<8|e[s+2>>>2]>>>24-8*((s+2)%4)&255,d=0;4>d&&s+.75*d<r;d++)t.push(n.charAt(o>>>6*(3-d)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var r=t.length,n=this.bD3x,s=n.charAt(64);s&&-1!=(s=t.indexOf(s))&&(r=s);for(var s=[],o=0,d=0;d<r;d++)if(d%4){var g=n.indexOf(t.charAt(d-1))<<2*(d%4),u=n.indexOf(t.charAt(d))>>>6-2*(d%4);s[o>>>2]|=(g|u)<<24-8*(o%4),o++}return e.create(s,o)},bD3x:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){function e(t,e,r,n,s,o,d){return((t=t+(e&r|~e&n)+s+d)<<o|t>>>32-o)+e}function r(t,e,r,n,s,o,d){return((t=t+(e&n|r&~n)+s+d)<<o|t>>>32-o)+e}function n(t,e,r,n,s,o,d){return((t=t+(e^r^n)+s+d)<<o|t>>>32-o)+e}function s(t,e,r,n,s,o,d){return((t=t+(r^(e|~n))+s+d)<<o|t>>>32-o)+e}for(var o=CryptoJS,d=o.lib,g=d.WordArray,u=d.Hasher,d=o.algo,f=[],h=0;64>h;h++)f[h]=4294967296*t.abs(t.sin(h+1))|0;d=d.MD5=u.extend({mj6d:function(){this.cU4Y=new g.init([1732584193,4023233417,2562383102,271733878])},tt8l:function(t,o){for(var d=0;16>d;d++){var g=o+d,u=t[g];t[g]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}var d=this.cU4Y.words,g=t[o+0],u=t[o+1],h=t[o+2],_=t[o+3],$=t[o+4],l=t[o+5],p=t[o+6],x=t[o+7],y=t[o+8],v=t[o+9],m=t[o+10],B=t[o+11],S=t[o+12],w=t[o+13],D=t[o+14],k=t[o+15],C=d[0],R=d[1],N=d[2],M=d[3],C=e(C,R,N,M,g,7,f[0]),M=e(M,C,R,N,u,12,f[1]),N=e(N,M,C,R,h,17,f[2]),R=e(R,N,M,C,_,22,f[3]),C=e(C,R,N,M,$,7,f[4]),M=e(M,C,R,N,l,12,f[5]),N=e(N,M,C,R,p,17,f[6]),R=e(R,N,M,C,x,22,f[7]),C=e(C,R,N,M,y,7,f[8]),M=e(M,C,R,N,v,12,f[9]),N=e(N,M,C,R,m,17,f[10]),R=e(R,N,M,C,B,22,f[11]),C=e(C,R,N,M,S,7,f[12]),M=e(M,C,R,N,w,12,f[13]),N=e(N,M,C,R,D,17,f[14]),R=e(R,N,M,C,k,22,f[15]),C=r(C,R,N,M,u,5,f[16]),M=r(M,C,R,N,p,9,f[17]),N=r(N,M,C,R,B,14,f[18]),R=r(R,N,M,C,g,20,f[19]),C=r(C,R,N,M,l,5,f[20]),M=r(M,C,R,N,m,9,f[21]),N=r(N,M,C,R,k,14,f[22]),R=r(R,N,M,C,$,20,f[23]),C=r(C,R,N,M,v,5,f[24]),M=r(M,C,R,N,D,9,f[25]),N=r(N,M,C,R,_,14,f[26]),R=r(R,N,M,C,y,20,f[27]),C=r(C,R,N,M,w,5,f[28]),M=r(M,C,R,N,h,9,f[29]),N=r(N,M,C,R,x,14,f[30]),R=r(R,N,M,C,S,20,f[31]),C=n(C,R,N,M,l,4,f[32]),M=n(M,C,R,N,y,11,f[33]),N=n(N,M,C,R,B,16,f[34]),R=n(R,N,M,C,D,23,f[35]),C=n(C,R,N,M,u,4,f[36]),M=n(M,C,R,N,$,11,f[37]),N=n(N,M,C,R,x,16,f[38]),R=n(R,N,M,C,m,23,f[39]),C=n(C,R,N,M,w,4,f[40]),M=n(M,C,R,N,g,11,f[41]),N=n(N,M,C,R,_,16,f[42]),R=n(R,N,M,C,p,23,f[43]),C=n(C,R,N,M,v,4,f[44]),M=n(M,C,R,N,S,11,f[45]),N=n(N,M,C,R,k,16,f[46]),R=n(R,N,M,C,h,23,f[47]),C=s(C,R,N,M,g,6,f[48]),M=s(M,C,R,N,x,10,f[49]),N=s(N,M,C,R,D,15,f[50]),R=s(R,N,M,C,l,21,f[51]),C=s(C,R,N,M,S,6,f[52]),M=s(M,C,R,N,_,10,f[53]),N=s(N,M,C,R,m,15,f[54]),R=s(R,N,M,C,u,21,f[55]),C=s(C,R,N,M,y,6,f[56]),M=s(M,C,R,N,k,10,f[57]),N=s(N,M,C,R,p,15,f[58]),R=s(R,N,M,C,w,21,f[59]),C=s(C,R,N,M,$,6,f[60]),M=s(M,C,R,N,B,10,f[61]),N=s(N,M,C,R,h,15,f[62]),R=s(R,N,M,C,v,21,f[63]);d[0]=d[0]+C|0,d[1]=d[1]+R|0,d[2]=d[2]+N|0,d[3]=d[3]+M|0},nZ6T:function(){var e=this.i3x,r=e.words,n=8*this.yL9C,s=8*e.sigBytes;r[s>>>5]|=128<<24-s%32;var o=t.floor(n/4294967296);for(r[(s+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,r[(s+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,e.sigBytes=4*(r.length+1),this.mD6x(),r=(e=this.cU4Y).words,n=0;4>n;n++)s=r[n],r[n]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;return e},clone:function(){var t=u.clone.call(this);return t.cU4Y=this.cU4Y.clone(),t}}),o.MD5=u.mE6y(d),o.HmacMD5=u.yK9B(d)}(Math),function(){var t=CryptoJS,e=t.lib,r=e.Base,n=e.WordArray,e=t.algo,s=e.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,s=r.hasher.create(),o=n.create(),d=o.words,g=r.keySize,r=r.iterations;d.length<g;){u&&s.update(u);var u=s.update(t).finalize(e);s.reset();for(var f=1;f<r;f++)u=s.finalize(u),s.reset();o.concat(u)}return o.sigBytes=4*g,o}});t.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)}}(),CryptoJS.lib.Cipher||function(t){var e=CryptoJS,r=e.lib,n=r.Base,s=r.WordArray,o=r.BufferedBlockAlgorithm,d=e.enc.Base64,g=e.algo.EvpKDF,u=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this.IX4b,t,e)},createDecryptor:function(t,e){return this.create(this.brC6w,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this.Vv7o=t,this.J3x=e,this.reset()},reset:function(){o.reset.call(this),this.mj6d()},process:function(t){return this.AE9v(t),this.mD6x()},finalize:function(t){return t&&this.AE9v(t),this.nZ6T()},keySize:4,ivSize:4,IX4b:1,brC6w:2,mE6y:function(t){return{encrypt:function(e,r,n){return("string"==typeof r?p:l).encrypt(t,e,r,n)},decrypt:function(e,r,n){return("string"==typeof r?p:l).decrypt(t,e,r,n)}}}});r.StreamCipher=u.extend({nZ6T:function(){return this.mD6x(!0)},blockSize:1});var f=e.mode={},h=function(t,e,r){var n=this.tB8t;n?this.tB8t=void 0:n=this.DB0x;for(var s=0;s<r;s++)t[e+s]^=n[s]},_=(r.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this.ud8V=t,this.tB8t=e}})).extend();_.Encryptor=_.extend({processBlock:function(t,e){var r=this.ud8V,n=r.blockSize;h.call(this,t,e,n),r.encryptBlock(t,e),this.DB0x=t.slice(e,e+n)}}),_.Decryptor=_.extend({processBlock:function(t,e){var r=this.ud8V,n=r.blockSize,s=t.slice(e,e+n);r.decryptBlock(t,e),h.call(this,t,e,n),this.DB0x=s}}),f=f.CBC=_,_=(e.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,r=r-t.sigBytes%r,n=r<<24|r<<16|r<<8|r,o=[],d=0;d<r;d+=4)o.push(n);r=s.create(o,r),t.concat(r)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:_}),reset:function(){u.reset.call(this);var t=this.cfg,e=t.iv,t=t.mode;if(this.Vv7o==this.IX4b)var r=t.createEncryptor;else r=t.createDecryptor,this.Vr7k=1;this.eU4Y=r.call(t,this,e&&e.words)},tt8l:function(t,e){this.eU4Y.processBlock(t,e)},nZ6T:function(){var t=this.cfg.padding;if(this.Vv7o==this.IX4b){t.pad(this.i3x,this.blockSize);var e=this.mD6x(!0)}else e=this.mD6x(!0),t.unpad(e);return e},blockSize:4});var $=r.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),f=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?s.create([1398893684,1701076831]).concat(t).concat(e):e).toString(d)},parse:function(t){var e=(t=d.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var r=s.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return $.create({ciphertext:t,salt:r})}},l=r.SerializableCipher=n.extend({cfg:n.extend({format:f}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var s=t.createEncryptor(r,n);return e=s.finalize(e),s=s.cfg,$.create({ciphertext:e,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this.Hf0x(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},Hf0x:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),e=(e.kdf={}).OpenSSL={execute:function(t,e,r,n){return n||(n=s.random(8)),t=g.create({keySize:e+r}).compute(t,n),r=s.create(t.words.slice(e),4*r),t.sigBytes=4*e,$.create({key:t,iv:r,salt:n})}},p=r.PasswordBasedCipher=l.extend({cfg:l.cfg.extend({kdf:e}),encrypt:function(t,e,r,n){return r=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize),n.iv=r.iv,(t=l.encrypt.call(this,t,e,r.key,n)).mixIn(r),t},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this.Hf0x(e,n.format),r=n.kdf.execute(r,t.keySize,t.ivSize,e.salt),n.iv=r.iv,l.decrypt.call(this,t,e,r.key,n)}})}(),function(){for(var t=CryptoJS,e=t.lib.BlockCipher,r=t.algo,n=[],s=[],o=[],d=[],g=[],u=[],f=[],h=[],_=[],$=[],l=[],p=0;256>p;p++)l[p]=128>p?p<<1:p<<1^283;for(var x=0,y=0,p=0;256>p;p++){var v=y^y<<1^y<<2^y<<3^y<<4,v=v>>>8^255&v^99;n[x]=v,s[v]=x;var m=l[x],B=l[m],S=l[B],w=257*l[v]^16843008*v;o[x]=w<<24|w>>>8,d[x]=w<<16|w>>>16,g[x]=w<<8|w>>>24,u[x]=w,w=16843009*S^65537*B^257*m^16843008*x,f[v]=w<<24|w>>>8,h[v]=w<<16|w>>>16,_[v]=w<<8|w>>>24,$[v]=w,x?(x=m^l[l[l[S^m]]],y^=l[l[y]]):x=y=1}var D=[0,1,2,4,8,16,32,64,128,27,54],r=r.AES=e.extend({mj6d:function(){for(var t=this.J3x,e=t.words,r=t.sigBytes/4,t=4*((this.bbn8f=r+6)+1),s=this.bsg6a=[],o=0;o<t;o++)if(o<r)s[o]=e[o];else{var d=s[o-1];o%r?6<r&&4==o%r&&(d=n[d>>>24]<<24|n[d>>>16&255]<<16|n[d>>>8&255]<<8|n[255&d]):(d=n[(d=d<<8|d>>>24)>>>24]<<24|n[d>>>16&255]<<16|n[d>>>8&255]<<8|n[255&d],d^=D[o/r|0]<<24),s[o]=s[o-r]^d}for(r=0,e=this.bsh6b=[];r<t;r++)o=t-r,d=r%4?s[o]:s[o-4],e[r]=4>r||4>=o?d:f[n[d>>>24]]^h[n[d>>>16&255]]^_[n[d>>>8&255]]^$[n[255&d]]},encryptBlock:function(t,e){this.DE0x(t,e,this.bsg6a,o,d,g,u,n)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this.DE0x(t,e,this.bsh6b,f,h,_,$,s),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},DE0x:function(t,e,r,n,s,o,d,g){for(var u=this.bbn8f,f=t[e]^r[0],h=t[e+1]^r[1],_=t[e+2]^r[2],$=t[e+3]^r[3],l=4,p=1;p<u;p++)var x=n[f>>>24]^s[h>>>16&255]^o[_>>>8&255]^d[255&$]^r[l++],y=n[h>>>24]^s[_>>>16&255]^o[$>>>8&255]^d[255&f]^r[l++],v=n[_>>>24]^s[$>>>16&255]^o[f>>>8&255]^d[255&h]^r[l++],$=n[$>>>24]^s[f>>>16&255]^o[h>>>8&255]^d[255&_]^r[l++],f=x,h=y,_=v;x=(g[f>>>24]<<24|g[h>>>16&255]<<16|g[_>>>8&255]<<8|g[255&$])^r[l++],y=(g[h>>>24]<<24|g[_>>>16&255]<<16|g[$>>>8&255]<<8|g[255&f])^r[l++],v=(g[_>>>24]<<24|g[$>>>16&255]<<16|g[f>>>8&255]<<8|g[255&h])^r[l++],$=(g[$>>>24]<<24|g[f>>>16&255]<<16|g[h>>>8&255]<<8|g[255&_])^r[l++],t[e]=x,t[e+1]=y,t[e+2]=v,t[e+3]=$},keySize:8});t.AES=e.mE6y(r)}();var maxDigits,ZERO_ARRAY,bigZero,bigOne,dpl10,lr10,hexatrigesimalToChar,hexToChar,highBitMasks,lowBitMasks,biRadixBits=16,bitsPerDigit=biRadixBits,biRadix=65536,biHalfRadix=biRadix>>>1,biRadixSquared=biRadix*biRadix,maxDigitVal=biRadix-1;function a(t){var e,r,n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",s="";for(e=0;t>e;e+=1)s+=n.charAt(r=Math.floor(r=Math.random()*n.length));return s}function b(t,e){var r=CryptoJS.enc.Utf8.parse(e),n=CryptoJS.enc.Utf8.parse("0102030405060708"),s=CryptoJS.enc.Utf8.parse(t);return CryptoJS.AES.encrypt(s,r,{iv:n,mode:CryptoJS.mode.CBC}).toString()}function charToHex(t){return t>=48&&57>=t?t-48:t>=65&&90>=t?10+t-65:t>=97&&122>=t?10+t-97:0}function hexToDigit(t){var e,r=0,n=Math.min(t.length,4);for(e=0;n>e;++e)r<<=4,r|=charToHex(t.charCodeAt(e));return r}function biFromHex(t){var e,r,n=new BigInt,s=t.length;for(e=s,r=0;e>0;e-=4,++r)n.digits[r]=hexToDigit(t.substr(Math.max(e-4,0),Math.min(e,4)));return n}function biHighIndex(t){for(var e=t.digits.length-1;e>0&&0==t.digits[e];)--e;return e}function RSAKeyPair(t,e,r){this.e=biFromHex(t),this.d=biFromHex(e),this.m=biFromHex(r),this.chunkSize=2*biHighIndex(this.m),this.radix=16,this.barrett=new BarrettMu(this.m)}function c(t,e,r){var n,s;return setMaxDigits(131),n=new RSAKeyPair(e,"",r),s=encryptedString(n,t)}setMaxDigits(20),dpl10=15,lr10=biFromNumber(1e15),hexatrigesimalToChar=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],hexToChar=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],highBitMasks=[0,32768,49152,57344,61440,63488,64512,65024,65280,65408,65472,65504,65520,65528,65532,65534,65535],lowBitMasks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],window.asrsea=function(t,e,r,n){var s={},o=a(16);return s.encText=b(t,n),s.encText=b(s.encText,o),s.encSecKey=c(o,e,r),s};let wf8X=function(t,e,r){if(!t)return"";var n=[];for(var s in t)n.push(encodeURIComponent(s)+"="+(r?encodeURIComponent(t[s]):t[s]));return n.join(e||",")},cr3x=function(t){return wf8X(t,"&",!0)};function Music(t){let e={ids:"["+parseInt(t)+"]",level:"standard",encodeType:"aac",csrf_token:""};var r=window.asrsea(JSON.stringify(e),"010001","00e0b509f6259df8642dbc35662901477df22677ec152b5ff68ace615bb7b725152b3ab17a876aea8a5aa76d2e417629ec4ee341f56135fccf695280104e0312ecbda92557c93870114af6c9d05c4f7f0c3685b7a46bee255932575cce10b424d813cfe4875d3e82047b97ddef52741d546b8e289dc6935b3ece0462db0a22b8e7","0CoJUm6Qyw8W8jud");return cr3x({params:r.encText,encSecKey:r.encSecKey})}function Lyric(t){let e={id:parseInt(t),lv:-1,tv:-1,csrf_token:""};var r=window.asrsea(JSON.stringify(e),"010001","00e0b509f6259df8642dbc35662901477df22677ec152b5ff68ace615bb7b725152b3ab17a876aea8a5aa76d2e417629ec4ee341f56135fccf695280104e0312ecbda92557c93870114af6c9d05c4f7f0c3685b7a46bee255932575cce10b424d813cfe4875d3e82047b97ddef52741d546b8e289dc6935b3ece0462db0a22b8e7","0CoJUm6Qyw8W8jud");return cr3x({params:r.encText,encSecKey:r.encSecKey})}`
	vm := goja.New() // 创建engine实例
	c := newConsole(vm)
	_ = vm.Set("console", c)
	_, err := vm.RunString(str) // 执行javascript代码
	//value
	if err != nil {
		fmt.Println("JS代码有问题！")
		return
	}

	if err := vm.ExportTo(vm.Get("Music"), &App.Music); err != nil {
		fmt.Println("Js函数映射到 Go 函数失败！")
		fmt.Println(err)
	}
	if err := vm.ExportTo(vm.Get("Lyric"), &App.Lyric); err != nil {
		fmt.Println("Js函数映射到 Go 函数失败！")
		fmt.Println(err)
	}
}
